package acl.hibernate.po;

import java.util.Date;

/**
 * UserViewId entity.
 * 
 * @author MyEclipse Persistence Tools
 */

public class UserView implements java.io.Serializable {

	// Fields

	private Integer id;
	private String name;
	private String username;
	private String password;
	private Integer personId;
	private Integer yxshId;
	private Short userstate;
	private Date created;
	private Date modified;
	private String allContent;
	private String yxsmc;

	// Constructors

	/** default constructor */
	public UserView() {
	}

	/** minimal constructor */
	public UserView(Integer id, String name, String username,
			String password, Short userstate) {
		this.id = id;
		this.name = name;
		this.username = username;
		this.password = password;
		this.userstate = userstate;
	}

	/** full constructor */
	public UserView(Integer id, String name, String username,
			String password, Integer personId, Integer yxshId, Short userstate,
			Date created, Date modified, String allContent,String yxsmc) {
		this.id = id;
		this.name = name;
		this.username = username;
		this.password = password;
		this.personId = personId;
		this.yxshId = yxshId;
		this.userstate = userstate;
		this.created = created;
		this.modified = modified;
		this.allContent = allContent;
		this.yxsmc=yxsmc;
	}

	// Property accessors

	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getName() {
		return this.name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getUsername() {
		return this.username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	public String getPassword() {
		return this.password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public Integer getPersonId() {
		return this.personId;
	}

	public void setPersonId(Integer personId) {
		this.personId = personId;
	}

	public Integer getYxshId() {
		return this.yxshId;
	}

	public void setYxshId(Integer yxshId) {
		this.yxshId = yxshId;
	}

	public Short getUserstate() {
		return this.userstate;
	}

	public void setUserstate(Short userstate) {
		this.userstate = userstate;
	}

	public Date getCreated() {
		return this.created;
	}

	public void setCreated(Date created) {
		this.created = created;
	}

	public Date getModified() {
		return this.modified;
	}

	public void setModified(Date modified) {
		this.modified = modified;
	}

	public String getAllContent() {
		return this.allContent;
	}

	public void setAllContent(String allContent) {
		this.allContent = allContent;
	}

	public boolean equals(Object other) {
		if ((this == other))
			return true;
		if ((other == null))
			return false;
		if (!(other instanceof UserView))
			return false;
		UserView castOther = (UserView) other;

		return ((this.getId() == castOther.getId()) || (this.getId() != null
				&& castOther.getId() != null && this.getId().equals(
				castOther.getId())))
				&& ((this.getName() == castOther.getName()) || (this.getName() != null
						&& castOther.getName() != null && this.getName()
						.equals(castOther.getName())))
				&& ((this.getUsername() == castOther.getUsername()) || (this
						.getUsername() != null
						&& castOther.getUsername() != null && this
						.getUsername().equals(castOther.getUsername())))
				&& ((this.getPassword() == castOther.getPassword()) || (this
						.getPassword() != null
						&& castOther.getPassword() != null && this
						.getPassword().equals(castOther.getPassword())))
				&& ((this.getPersonId() == castOther.getPersonId()) || (this
						.getPersonId() != null
						&& castOther.getPersonId() != null && this
						.getPersonId().equals(castOther.getPersonId())))
				&& ((this.getYxshId() == castOther.getYxshId()) || (this
						.getYxshId() != null
						&& castOther.getYxshId() != null && this.getYxshId()
						.equals(castOther.getYxshId())))
				&& ((this.getUserstate() == castOther.getUserstate()) || (this
						.getUserstate() != null
						&& castOther.getUserstate() != null && this
						.getUserstate().equals(castOther.getUserstate())))
				&& ((this.getCreated() == castOther.getCreated()) || (this
						.getCreated() != null
						&& castOther.getCreated() != null && this.getCreated()
						.equals(castOther.getCreated())))
				&& ((this.getModified() == castOther.getModified()) || (this
						.getModified() != null
						&& castOther.getModified() != null && this
						.getModified().equals(castOther.getModified())))
				&& ((this.getAllContent() == castOther.getAllContent()) || (this
						.getAllContent() != null
						&& castOther.getAllContent() != null && this
						.getAllContent().equals(castOther.getAllContent())));
	}

	public int hashCode() {
		int result = 17;

		result = 37 * result + (getId() == null ? 0 : this.getId().hashCode());
		result = 37 * result
				+ (getName() == null ? 0 : this.getName().hashCode());
		result = 37 * result
				+ (getUsername() == null ? 0 : this.getUsername().hashCode());
		result = 37 * result
				+ (getPassword() == null ? 0 : this.getPassword().hashCode());
		result = 37 * result
				+ (getPersonId() == null ? 0 : this.getPersonId().hashCode());
		result = 37 * result
				+ (getYxshId() == null ? 0 : this.getYxshId().hashCode());
		result = 37 * result
				+ (getUserstate() == null ? 0 : this.getUserstate().hashCode());
		result = 37 * result
				+ (getCreated() == null ? 0 : this.getCreated().hashCode());
		result = 37 * result
				+ (getModified() == null ? 0 : this.getModified().hashCode());
		result = 37
				* result
				+ (getAllContent() == null ? 0 : this.getAllContent()
						.hashCode());
		return result;
	}

	public String getYxsmc() {
		return yxsmc;
	}

	public void setYxsmc(String yxsmc) {
		this.yxsmc = yxsmc;
	}

}